from api.api_test_login import TestLogin


def get_headers(mobile = "13800000002",password = "123456"):
    body = {"mobile": mobile, "password": password}
    resp = TestLogin.test_login(body)
    token = "Bearer " + resp.json().get("data")

    headers = {"Content-Type": "application/json", "Authorization": token}
    return  headers